package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;



/**
 * @desc EvalTempDto
 * @使用场景
 */
@Data

public class EvalTempDto extends BaseDto implements Serializable {
    /**
     * 评价模板ID:
     */
    @ApiModelProperty("评价模板ID")
    private String evaluationTemplateId;
    /**
     * 评价模板标识:
     */
    @ApiModelProperty("评价模板标识")
    private String evaluationTemplateCode;
    /**
     * 评价模板简称:
     */
    @ApiModelProperty("评价模板简称")
    private String evaluationTempShortName;
/**
     * 对应的目标ID 
     */
    @ApiModelProperty("对应的目标ID")
    private String	 targetId;
/**
     * 评价模板名称
     */
    @ApiModelProperty("评价模板名称")
    private String	 evaluationTempName;
/**
     * 规划类型 GENERAL_PLANNING:常规规划 THEMATIC_PLANNING:专题规划
     */
    @ApiModelProperty("规划类型")
    private String	 planningType;
/**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String	 evaObjTargetCycleId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String	 subjectLifeCycle;
/**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String	 cycleId;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String	 isParentCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String	 isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String	 isMetaphase;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      EvalTempDto that = (EvalTempDto) o;
      return  evaluationTemplateId == that.evaluationTemplateId&&evaluationTemplateCode == that.evaluationTemplateCode&&evaluationTempShortName == that.evaluationTempShortName&&targetId == that.targetId&&evaluationTempName == that.evaluationTempName&&planningType == that.planningType&&evaObjTargetCycleId == that.evaObjTargetCycleId&&subjectLifeCycle == that.subjectLifeCycle&&cycleId == that.cycleId&&isParentCycle == that.isParentCycle&&isSubCycle == that.isSubCycle&&isMetaphase == that.isMetaphase;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaluationTemplateId,evaluationTemplateCode,evaluationTempShortName,targetId,evaluationTempName,planningType,evaObjTargetCycleId,subjectLifeCycle,cycleId,isParentCycle,isSubCycle,isMetaphase);
    }



}
   